package IC.LIR;


public class LirDownType {
	
	private LirRegister target;
	private int nextRegNum;
	private boolean shouldLoadResToReg = true;

	
	public LirDownType(LirRegister target, int nextRegNum){
		this.target = target;
		this.nextRegNum = nextRegNum;
		this.shouldLoadResToReg = true;
	}
	
	public LirDownType(LirRegister target, int nextRegNum, boolean isRightOperand){
		this.target = target;
		this.nextRegNum = nextRegNum;
		this.setLoadResToReg(isRightOperand);
	}
	
	public LirRegister getTarget() {
		return target;
	}

	public void setTarget(LirRegister target) {
		this.target = target;
	}

	public int getNextRegNum() {
		return nextRegNum;
	}

	public void setNextRegNum(int nextRegNum) {
		this.nextRegNum = nextRegNum;
	}

	public void setLoadResToReg(boolean shouldLoadResToReg) {
		this.shouldLoadResToReg = shouldLoadResToReg;
	}

	public boolean shouldLoadResToReg() {
		return shouldLoadResToReg;
	}


}
